<!DOCTYPE html>
<html>
<head>
    <title>查看--中软高科-2015</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>
    <script type="text/javascript" src="../Js/ckeditor/ckeditor.js"></script>
 

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
    <script type="text/javascript">
        //从url里获取参数，window.location.search.search从问号(?)开始的 URL（查询部分）
        function getQueryVariable(variable){
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            for (var i=0;i<vars.length;i++) {
                var pair = vars[i].split("=");
                if(pair[0] == variable){return pair[1];}
            }
            return false;
        }
        let pageNum = getQueryVariable("pageNum");

        $(function () {
            $('#backid').click(function(){
                    window.location.href="/registration/index.html?&pageNum="+pageNum;
             });
            let blh = getQueryVariable("blh");
            let ghks = decodeURI(getQueryVariable("ghks"));
            // alert(ghks);
            let zzys = getQueryVariable("zzys");

            $.ajax({
                url:"/guahaodetail/"+blh,
                data:"",
                type: "GET",
                success:function (vo) {
                    console.log(vo);
                    let obj = vo.obj;
                    $("#xm").html(obj.xm);
                    $("#sfzh").html(obj.zjh);
                    $("#sbh").html(obj.sbh);
                    $("#phone").html(obj.phone);
                    $("#sfzf").html(obj.shzf == "0"?"否":"是");
                    $("#gender").html(obj.gender == "0"?"女":"男");
                    $("#age").html(obj.age);
                    $("#job").html(obj.job);
                    $("#cfz").html(obj.chz == "0"?"初诊":"复诊");
                    $("#ks").html(ghks);
                    $("#zzys").html(zzys);
                    $("#bz").html(obj.bz);
                    // document.write(modelAndView);
                }
            })
        });
        //从url里获取参数，window.location.search.search从问号(?)开始的 URL（查询部分）
        function getQueryVariable(variable){
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            for (var i=0;i<vars.length;i++) {
                var pair = vars[i].split("=");
                if(pair[0] == variable){return pair[1];}
            }
            return false;
        }
    </script>
</head>
<body>
<form action="index.html" method="post" class="definewidth m20">
<table class="table table-bordered table-hover definewidth m10">
    <tr>
        <td width="10%" class="tableleft">姓名</td>
        <td id="xm"></td>
    </tr>

    <tr>
        <td width="10%" class="tableleft">身份证号</td>
        <td id="sfzh"></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">挂号费</td>
        <td id="ghf">5元</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">社保号</td>
        <td id="sbh"></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">联系电话</td>
        <td id="phone"></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">是否自费</td>
        <td id="sfzf"></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">性别</td>
        <td id="gender"></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">年龄</td>
        <td id="age"></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">职业</td>
        <td id="job"></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">初复诊</td>
        <td id="cfz"></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">所挂科室</td>
        <td id="ks"></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">指定医生</td>
        <td id="zzys"></td>
    </tr>
	<tr>
        <td width="10%" class="tableleft">备注</td>
        <td id="bz"></td>
	</tr>
    <tr>
        <td colspan="2">
			<center>
				<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
			</center>
		</td>
    </tr>
</table>
</form>
</body>
</html>